import { ref } from 'vue'
import { defineStore } from 'pinia'

export const useStudyStore = defineStore('studystore', () => {

    const grade = ref({})
    const course = ref({})
    const student = ref({id:1})
    const studyData=ref({})
    
    return { grade,course,student,studyData}
},{
    persist: {
        enabled: true // true 表示开启持久化保存
    }
})